package com.itheima.edu.info.manager.controller;

import com.itheima.edu.info.manager.domain.Teacher;

import java.util.Scanner;
import java.util.ServiceLoader;

public class OtherTeacherController extends BaseTeacherController {
    private Scanner sc=new Scanner(System.in);

    @Override
    public Teacher getTeacher(String sId) {
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        int age = sc.nextInt();
        System.out.println("请输入生日");
        String birthday = sc.next();
        return new Teacher(sId,name,age,birthday);
    }
}
